/*
 * Welcome to use the TableGo Tools.
 * 
 * http://vipbooks.iteye.com
 * http://blog.csdn.net/vipbooks
 * http://www.cnblogs.com/vipbooks
 * 
 * Author:bianj
 * Email:edinsker@163.com
 * Version:5.8.8
 */

package cn.stylefeng.guns.czlm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * tb_coupon
 * 
 * @author wangruquan
 * @version 1.0.0 2019-04-28
 */
@TableName("tb_coupon")
public class TbCoupon implements java.io.Serializable {
    /** 版本号 */
    private static final long serialVersionUID = 8919161874995099874L;

    /** id */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    /** money */
    @TableField("money")
    private Integer money;

    /** leastSpendMoney */
    @TableField("leastSpendMoney")
    private Integer leastSpendMoney;

    /** 0未删除1删除 */
    @TableField("active")
    private Integer active;

    /** 有效期 */
    @TableField("period")
    private Integer period;

    /** promotionId */
    @TableField("promotionId")
    private Integer promotionId;

    /** 优惠券名称 */
    @TableField("name")
    private String name;

    /**
     * 获取id
     * 
     * @return id
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置id
     * 
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取money
     * 
     * @return money
     */
    public Integer getMoney() {
        return this.money;
    }

    /**
     * 设置money
     * 
     * @param money
     */
    public void setMoney(Integer money) {
        this.money = money;
    }

    /**
     * 获取leastSpendMoney
     * 
     * @return leastSpendMoney
     */
    public Integer getLeastSpendMoney() {
        return this.leastSpendMoney;
    }

    /**
     * 设置leastSpendMoney
     * 
     * @param leastSpendMoney
     */
    public void setLeastSpendMoney(Integer leastSpendMoney) {
        this.leastSpendMoney = leastSpendMoney;
    }

    /**
     * 获取0未删除1删除
     * 
     * @return 0未删除1删除
     */
    public Integer getActive() {
        return this.active;
    }

    /**
     * 设置0未删除1删除
     * 
     * @param active
     *          0未删除1删除
     */
    public void setActive(Integer active) {
        this.active = active;
    }

    /**
     * 获取有效期
     * 
     * @return 有效期
     */
    public Integer getPeriod() {
        return this.period;
    }

    /**
     * 设置有效期
     * 
     * @param period
     *          有效期
     */
    public void setPeriod(Integer period) {
        this.period = period;
    }

    /**
     * 获取promotionId
     * 
     * @return promotionId
     */
    public Integer getPromotionId() {
        return this.promotionId;
    }

    /**
     * 设置promotionId
     * 
     * @param promotionId
     */
    public void setPromotionId(Integer promotionId) {
        this.promotionId = promotionId;
    }

    /**
     * 获取优惠券名称
     * 
     * @return 优惠券名称
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置优惠券名称
     * 
     * @param name
     *          优惠券名称
     */
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "TbCoupon{" +
                "id=" + id +
                ", money=" + money +
                ", leastSpendMoney=" + leastSpendMoney +
                ", active=" + active +
                ", period=" + period +
                ", promotionId=" + promotionId +
                ", name='" + name + '\'' +
                '}';
    }
}